xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
  xml.channel do
    xml.title "BeyondRails"
    xml.description "BeyondRails Rails 中文 社区 博客 教程 资源 论坛"
    xml.link formatted_tutorials_url(:rss)

    for t in @rss_tutorials
      xml.item do
        xml.title h(t.title)
        xml.author h(t.user.login)
        xml.description bbcode2html(t.content)
        xml.pubDate t.created_at.to_s(:rfc822)
        xml.link tutorial_url(t)
        xml.guid tutorial_url(t)
      end
    end
  end
end